package com.bruce.ribbon.controller;

import com.bruce.ribbon.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author luotuan
 * @Description
 * @create 2021-01-22 16:43
 **/
@RestController
public class HelloController {
    @Autowired
    private HelloService helloService;

    @RequestMapping(value = "getHello", method = RequestMethod.GET)
    public String getHello() {
        return helloService.helloService();
    }
}
